package top.canyue.eca_manager.service;

import top.canyue.eca_manager.bean.Result;
import top.canyue.eca_manager.bean.User;

public interface UserService {

    Result findById(String id);

    Result findByName(String name, String orders, Integer offset, Integer fetchSize);

    Result getUserCountByName(String name);

    Result login(String idOrName, String passwd);

    Result logon(String name, String passwd, String phone);

    Result updateUserInfo(User user);

    Result updateUserPasswd(String id, String oldPasswd, String passwd);

    Result deleteUser(String id);

    Result updateUserAdmin(String id, boolean admin);

    Result getUserCount();

    Result getUserCountByMount();

    Result getAllUserName();
}
